﻿<UserControl x:Class="MissedMemo.MeatAndCheeseDisc.OrderEntry.viewCustomerDetails"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="540" Width="400">

    <UserControl.Resources>
        <ResourceDictionary>

            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="resColorScheme.xaml" />
            </ResourceDictionary.MergedDictionaries>

            <Style TargetType="{x:Type TextBlock}">
                <Setter Property="HorizontalAlignment" Value="Right" />
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="TextAlignment" Value="Center" />
            </Style>

            <Style TargetType="{x:Type TextBox}">
                <Setter Property="Margin" Value="5,0" />
                <Setter Property="VerticalAlignment" Value="Center" />
            </Style>

            <Style TargetType="{x:Type RowDefinition}" >
                <Setter Property="Height" Value="36" />
            </Style>

        </ResourceDictionary>
    </UserControl.Resources>
    
    <Grid Margin="20" >

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto" />
            <ColumnDefinition Width="35*" />
            <ColumnDefinition Width="15*" />
            <ColumnDefinition Width="35*" />
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>

        <TextBlock Text="Name:" Grid.Column="0" Grid.Row="0" />
        <TextBox Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="0" Text="{Binding Path=Customer.Name}" />
        
        <TextBlock Text="E-mail:" Grid.Column="0" Grid.Row="1" />
        <TextBox Grid.Column="1" Grid.Row="1" Text="{Binding Path=Customer.EMail}" />
        
        <TextBlock Text="Phone:" Grid.Column="0" Grid.Row="2" />
        <TextBox Grid.Column="1" Grid.Row="2" Text="{Binding Path=Customer.Phone}" />
        
        <TextBlock Text="Fax:" Grid.Column="2" Grid.Row="2" />
        <TextBox Grid.Column="3" Grid.Row="2" Text="{Binding Path=Customer.Fax}" />
        
        <TextBlock Text="Addr1:" Grid.Column="0" Grid.Row="4" />
        <TextBox Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="4" Text="{Binding Path=Customer.Address.Addr1}" />
        
        <TextBlock Text="Addr2:" Grid.Column="0" Grid.Row="5" />
        <TextBox Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="5" Text="{Binding Path=Customer.Address.Addr2}" />
        
        <TextBlock Text="City:" Grid.Column="0" Grid.Row="6" />
        <TextBox Grid.Column="1" Grid.Row="6"  Text="{Binding Path=Customer.Address.City}" />
        
        <TextBlock Text="State:" Grid.Column="0" Grid.Row="7" />
        <TextBox Grid.Column="1" Grid.Row="7"  Text="{Binding Path=Customer.Address.State}" />
        
        <TextBlock Text="Zip:" Grid.Column="2" Grid.Row="7" />
        <TextBox Grid.Column="3" Grid.Row="7"  Text="{Binding Path=Customer.Address.Zip}" />

    </Grid>
    
</UserControl>
